package com.haust.leyou.api;

import com.haust.leyou.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Auther: csp1999
 * @Date: 2020/12/20/14:18
 * @Description:
 */
public interface UserApi {

    /**
     * 根据用户名和密码查询用户信息
     *
     * @param username
     * @param password
     * @return
     */
    @GetMapping("/query")
    public User queryUser(@RequestParam("username") String username,
                          @RequestParam("password") String password);
}
